<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/12/31
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
</head>
<body>
<center><h1>分配角色页面</h1>
    <font color="red">${sysUser_db.name}</font> --分配角色:
    <hr>
</center>
<form action="<%=basePath%>sysRoleController/FPRole" method="post">
    <input type="hidden" name="userIdStr" value="${sysUser_db.userId}">
    <table>
        <tr>
            <td>角色列表：</td>
            <c:forEach items="${sysRoleList_db}" var="sysRole_db">
                <td><input type="radio" name="roleIdStr" id="${sysRole_db.roleId}" value="${sysRole_db.roleId}" <c:if test="${sysRole_db.roleId==sysRole_xz_db.roleId}">checked="checked"</c:if>>${sysRole_db.roleName}</td>
            </c:forEach>

        </tr>


        <tr>
            <td><input type="submit" value="分配角色"></td>
            <td></td>
        </tr>
    </table>
</form>

</body>
</html>
